package com.hangzhou.xyj.net.request;

import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/2/22  11:46
 * <p/>
 * 说明：用户注册第三方账号 请求
 */
public class RegistThirdAccountReq extends BaseRequest {
    public static final String TYPE_WEIXIN = "wx";//微信
    public static final String TYPE_WEIBO = "wb";//新浪微博
    public static final String TYPE_QQ = "qq";//QQ

    /**
     * @param accountName 用户名
     * @param nickname    昵称
     * @param headPic     头像
     * @param sex         性别
     * @param type        账号类型：微信；新浪微博；QQ
     * @return
     * @Description
     * @author yaohuix
     * @date 2016/2/22 11:51
     */
    public RegistThirdAccountReq(String accountName, String nickname, String headPic, String sex, String type) {
        add("accountName", accountName);
        add("nickname", nickname);
        add("headPic", headPic);
        add("sex", sex);
        add("type", type);
    }

    @Override
    public String getUrl() {
        return API.REGISTER_THIRD_ACCOUNT;
    }
}
